

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=dark>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/newtubiao.png">
  <link rel="icon" href="/img/newtubiao.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="">
  <meta name="author" content="Asteri5m">
  <meta name="keywords" content="">
  <meta name="description" content="搭这个博客还是费了一番心思，在原有主题的基础上，添加了很多自定义的内容。每次更新都在这里记下来：  鼠标点击特效 浏览器右侧滚动条 背景动调线条 鼠标指针的替换 浏览器标签恶搞 网站计时器 鼠标移动的特效 去除banner图 设置背景固定的图  前言·准备工作Fluid主题是一款完整度比较高的主题了，一般不要修改源代码，不然导致后面更新时会很麻烦（如果你不打算更新，当我没说） 如果你懂html知识">
<meta property="og:type" content="article">
<meta property="og:title" content="Fluid魔改笔记">
<meta property="og:url" content="http://asteri5m.icu/archives/Fluid%E9%AD%94%E6%94%B9%E7%AC%94%E8%AE%B0.html">
<meta property="og:site_name" content="Asteri5m">
<meta property="og:description" content="搭这个博客还是费了一番心思，在原有主题的基础上，添加了很多自定义的内容。每次更新都在这里记下来：  鼠标点击特效 浏览器右侧滚动条 背景动调线条 鼠标指针的替换 浏览器标签恶搞 网站计时器 鼠标移动的特效 去除banner图 设置背景固定的图  前言·准备工作Fluid主题是一款完整度比较高的主题了，一般不要修改源代码，不然导致后面更新时会很麻烦（如果你不打算更新，当我没说） 如果你懂html知识">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026182437970.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026183020980.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026192836906.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211025142854701.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026191652682.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026192604121.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211124000454905.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211124000808506.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211124000934686.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211025145431896.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211025145743845.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211025145923838.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026193145227.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026193451102.png">
<meta property="og:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026194135178.png">
<meta property="article:published_time" content="2021-10-25T07:03:48.134Z">
<meta property="article:modified_time" content="2021-11-23T16:09:44.557Z">
<meta property="article:author" content="Asteri5m">
<meta property="article:tag" content="HTML">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026182437970.png">
  
    <meta name="baidu-site-verification" content="code-GBSY8p4qe6" />
  
  <title>Fluid魔改笔记 - Asteri5m</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4/github-markdown.min.css" />
  <link  rel="stylesheet" href="/lib/hint/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10/styles/atom-one-dark.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.css" />
  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->

  
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/aplayer@1.10.0/dist/APlayer.min.css">
<link rel="stylesheet" href="/xm_custom/custom.css">



  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"asteri5m.icu","root":"/","version":"1.8.12","typing":{"enable":true,"typeSpeed":120,"cursorChar":"_","loop":true},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":3},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":"5INqyf5xMrWdsn0whn39qjsu-gzGzoHsz","app_key":"6UTAOxyJnjvDwHX3PJagKMg9","server_url":"https://5inqyf5x.lc-cn-n1-shared.com","path":"window.location.pathname"}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.4.0"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>Asteri5m</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/guestbook/">
                <i class="iconfont icon-note"></i>
                留言板
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" false
         style="background: url('/img/none.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="Fluid魔改笔记">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2021-10-25 15:03" pubdate>
        2021年10月25日 下午
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      16k 字
    </span>
  

  
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      50 分钟
    </span>
  

  
  
    
      <!-- LeanCloud 统计文章PV -->
      <span id="leancloud-page-views-container" class="post-meta" style="display: none">
        <i class="iconfont icon-eye" aria-hidden="true"></i>
        <span id="leancloud-page-views"></span> 次
      </span>
    
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">Fluid魔改笔记</h1>
            
              <p class="note note-info">
                
                  本文最后更新于：3 个月前
                
              </p>
            
            <div class="markdown-body">
              <p>搭这个博客还是费了一番心思，在原有主题的基础上，添加了很多自定义的内容。每次更新都在这里记下来：</p>
<ul>
<li>鼠标点击特效</li>
<li>浏览器右侧滚动条</li>
<li>背景动调线条</li>
<li>鼠标指针的替换</li>
<li>浏览器标签恶搞</li>
<li>网站计时器</li>
<li>鼠标移动的特效</li>
<li>去除banner图</li>
<li>设置背景固定的图</li>
</ul>
<h2 id="前言·准备工作"><a href="#前言·准备工作" class="headerlink" title="前言·准备工作"></a>前言·准备工作</h2><p>Fluid主题是一款完整度比较高的主题了，一般不要修改源代码，不然导致后面更新时会很麻烦（如果你不打算更新，当我没说）</p>
<p>如果你懂html知识，你随意，如果你是纯小白，那么完全按照我的来，也是可以完成你想要的特效的。</p>
<p>首先我们要引入js和css文件，这里一般在自己的主题里面都是可以找的相应位置的，引入外来文件，不动源代码，才是最稳妥的办法。</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026182437970.png" srcset="/img/loading.gif" lazyload></p>
<p>这里Fluid主题配置文件里就有，在这里就可以引入自己的文件了，这里的相对路径则是你blog文件夹下面的source，在这里你还能看到你的文章，配图……其他自定义的配置文件（如果有的话）。</p>
<p>这里我是把js和css都放在一个文件夹里面，方便找到和修改</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026183020980.png" srcset="/img/loading.gif" lazyload></p>
<p>如果你没有这两个文件，自己创建就好，完成之后就可以正式开始了，在下面选取喜欢的样式复制进代码就好，有特殊修改的我会特别说明。CSS和js别弄错了。</p>
<h2 id="0x00-CSS"><a href="#0x00-CSS" class="headerlink" title="0x00 CSS"></a>0x00 CSS</h2><h3 id="0x01-浏览器右侧滚动条"><a href="#0x01-浏览器右侧滚动条" class="headerlink" title="0x01 浏览器右侧滚动条"></a>0x01 浏览器右侧滚动条</h3><p>找了很多教程，看了很多博客，最后总结出最简单的替换原来滚动条的方法</p>
<figure class="highlight css"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs css"><span class="hljs-selector-tag">html</span> &#123; <br>	<span class="hljs-attribute">overflow-y</span>: scroll; <span class="hljs-comment">/* 设置自定义滚动条 这样做会强制显示滚动条*/</span><br>	<span class="hljs-comment">/*overflow-y: auto; /* 可以更换为auto，自动显示模式，就不会强制显示*/</span><br>&#125;<br><br><span class="hljs-comment">/* 滚动栏本身的背景 此项必须有 */</span><br><span class="hljs-selector-tag">html</span>::-webkit-scrollbar &#123; <br>    width: <span class="hljs-number">6px</span>;<br>    <span class="hljs-attribute">background-color</span>: <span class="hljs-built_in">rgba</span>(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0.0</span>);<br>&#125;<br><br><span class="hljs-comment">/*滚动栏下方的空白区域*/</span><br><span class="hljs-selector-tag">html</span>::-webkit-scrollbar-track &#123;<br>	background: <span class="hljs-built_in">rgba</span>(<span class="hljs-number">255</span>, <span class="hljs-number">85</span>, <span class="hljs-number">127</span>, <span class="hljs-number">0.0</span>); <span class="hljs-comment">/* 设置透明，就会随主题变化 */</span><br>&#125;<br><br><span class="hljs-comment">/* 可拖动滚动元素的大小取决于可滚动元素的大小 */</span><br><span class="hljs-selector-tag">html</span>::-webkit-scrollbar-thumb&#123;<br>	background: <span class="hljs-number">#252d38</span>;<br>	<span class="hljs-attribute">border-radius</span>: <span class="hljs-number">6px</span>;<br>&#125;<br><br><span class="hljs-comment">/* 可滚动元素的底角，两个滚动条在此相交。 */</span><br><span class="hljs-selector-tag">html</span>::-webkit-scrollbar-corner &#123;<br>	background:<span class="hljs-number">#82AFFF</span>;<br>&#125;<br></code></pre></div></td></tr></table></figure>

<p>关于<code>-webkit-scrollbar</code>伪元素更多的用法，自行百度</p>
<p><strong>注</strong> ：这里应该支持大部分浏览器，但是火狐是不支持的，想搞得用插件。</p>
<p>同时我还替换了代码下面的滚动条</p>
<figure class="highlight css"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs css"><span class="hljs-selector-class">.markdown-body</span> <span class="hljs-selector-tag">table</span> &#123;<br>	<span class="hljs-attribute">overflow-x</span>: scroll; <span class="hljs-comment">/* 设置自定义滚动条 */</span><br>&#125;<br><br><span class="hljs-comment">/* 滚动栏本身的背景 此项必须有 */</span><br><span class="hljs-selector-class">.markdown-body</span> <span class="hljs-selector-tag">table</span>::-webkit-scrollbar &#123; <br>    height: <span class="hljs-number">8px</span>;<br>    <span class="hljs-attribute">background-color</span>: <span class="hljs-built_in">rgba</span>(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0.0</span>);<br>&#125;<br><br><span class="hljs-comment">/*滚动栏下方的空白区域*/</span><br><span class="hljs-selector-class">.markdown-body</span> <span class="hljs-selector-tag">table</span>::-webkit-scrollbar-track &#123;<br>	background-color: <span class="hljs-built_in">rgba</span>(<span class="hljs-number">255</span>, <span class="hljs-number">85</span>, <span class="hljs-number">127</span>, <span class="hljs-number">0.0</span>);<br>&#125;<br><br><span class="hljs-comment">/* 可拖动滚动元素的大小取决于可滚动元素的大小 */</span><br><span class="hljs-selector-class">.markdown-body</span> <span class="hljs-selector-tag">table</span>::-webkit-scrollbar-thumb&#123;<br>	background: <span class="hljs-number">#ffaaff</span>;<br>	<span class="hljs-attribute">border-radius</span>: <span class="hljs-number">2px</span>;<br>&#125;<br></code></pre></div></td></tr></table></figure>

<p>你可能会在其他地方看到更为简略的写法，那就是没有 <code>::</code> 之前的内容直接写成这样：</p>
<figure class="highlight css"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs css">::-webkit-scrollbar &#123; <br>    height: <span class="hljs-number">8px</span>;<br>    <span class="hljs-attribute">background-color</span>: <span class="hljs-built_in">rgba</span>(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0.0</span>);<br>&#125;<br></code></pre></div></td></tr></table></figure>

<p>在只替换一处的情况下，可以那样做没有毛病，但是果然替换多处，最好还是按照我的方法写。或者宁是这方面的专业人士，有更好更优的写法与处理逻辑的话，希望宁不吝赐教，可以邮箱发给我。</p>
<p>最终效果如下</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026192836906.png" srcset="/img/loading.gif" lazyload></p>
<h3 id="0x02-替换鼠标指针"><a href="#0x02-替换鼠标指针" class="headerlink" title="0x02 替换鼠标指针"></a>0x02 替换鼠标指针</h3><p>很多博主都是简单的几行代码，主要是修改cursor属性</p>
<figure class="highlight css"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs css"><span class="hljs-selector-tag">html</span> &#123; <br>	<span class="hljs-attribute">cursor</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/Arrow.cur</span>),auto;<span class="hljs-comment">/* url地址可以是链接，相对位置，绝对位置 */</span><br>	<span class="hljs-attribute">background-color</span>: @theme_background;  <span class="hljs-comment">/* 写成透明就行 */</span><br>&#125;<br></code></pre></div></td></tr></table></figure>

<p>这个时候运行就会发现有很多地方没有替换，在网页使用F12打开开发者功能选中元素就行，再用选择器修改对应的cursor属性即可</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211025142854701.png" srcset="/img/loading.gif" lazyload></p>
<figure class="highlight css"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs css"><span class="hljs-comment">/* 封面大图 */</span><br><span class="hljs-selector-class">.banner</span> &#123;<br>	<span class="hljs-attribute">cursor</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/Arrow.cur</span>),auto;<br>	<span class="hljs-attribute">background-color</span>: @theme_background;<br>&#125;<br><br><span class="hljs-comment">/* 封面向下 */</span><br><span class="hljs-selector-class">.scroll-down-bar</span> &#123;<br>	<span class="hljs-attribute">cursor</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/Hand2.cur</span>),auto; <span class="hljs-comment">/* 一个小手 */</span><br>	<span class="hljs-attribute">background-color</span>: @theme_background;<br>&#125;<br></code></pre></div></td></tr></table></figure>

<p>最不好处理的就是链接，这个时候光标就会变成一个单指点击的小手，我用上面的方法修改了一个多小时，直到我发现了<strong>属性选择器</strong>……</p>
<figure class="highlight css"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs css"><span class="hljs-comment">/* 所有可跳转链接 */</span><br><span class="hljs-selector-tag">a</span><span class="hljs-selector-attr">[href]</span> &#123;<br>	<span class="hljs-attribute">cursor</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/Hand2.cur</span>),auto <span class="hljs-meta">!important</span>;<br>	<span class="hljs-attribute">background-color</span>: @theme_background;<br>&#125;<br></code></pre></div></td></tr></table></figure>

<p>这个时候就完美解决（增加评论后进行了优化，添加!important属性后可以应用大部分场景，对下方补充进行了删减）</p>
<p>再看看其他地方，做做补充</p>
<figure class="highlight css"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs css"><span class="hljs-comment">/* 搜索框关闭按钮  */</span><br><span class="hljs-selector-id">#local-search-close</span><span class="hljs-selector-class">.close</span> &#123;<br>	<span class="hljs-attribute">cursor</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/Hand2.cur</span>),auto;<br>	<span class="hljs-attribute">background-color</span>: @theme_background;<br>&#125;<br><br><span class="hljs-comment">/* 搜索框、输入框 */</span><br><span class="hljs-selector-tag">input</span>,<span class="hljs-selector-tag">textarea</span> &#123;<br>	<span class="hljs-attribute">cursor</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/IBeam.cur</span>),auto;    <span class="hljs-comment">/* 这里应该是竖条光标 */</span><br>	<span class="hljs-attribute">background-color</span>: @theme_background;<br>&#125;<br><br><span class="hljs-comment">/* 代码复制键 按钮键增加!important属性后可删 */</span><br><span class="hljs-selector-class">.copy-btn</span><span class="hljs-selector-class">.copy-btn-light</span> &#123;<br>	<span class="hljs-attribute">cursor</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/Hand2.cur</span>),auto;<br>	<span class="hljs-attribute">background-color</span>: @theme_background;<br>&#125;<br><br><span class="hljs-comment">/* 按钮 */</span><br><span class="hljs-selector-tag">button</span><span class="hljs-selector-attr">[class]</span> &#123;<br>	<span class="hljs-attribute">cursor</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/Hand2.cur</span>),auto <span class="hljs-meta">!important</span>;<br>	<span class="hljs-attribute">background-color</span>: @theme_background;<br>&#125;<br><br><span class="hljs-comment">/* 补充按钮 */</span><br>svg &#123;<br>	<span class="hljs-attribute">cursor</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/Hand2.cur</span>),auto <span class="hljs-meta">!important</span>;<br>	<span class="hljs-attribute">background-color</span>: <span class="hljs-built_in">rgba</span>(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0.0</span>);<br>&#125;<br><br><span class="hljs-comment">/* 图片放大 */</span><br><span class="hljs-selector-class">.fancybox-image</span> &#123;<br>	<span class="hljs-attribute">cursor</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/SizeAll.cur</span>),auto;<br>	<span class="hljs-attribute">background-color</span>: @theme_background;<br>&#125;<br><br><span class="hljs-comment">/* 回到顶部   a标签添加!important属性后此处可删*/</span><br><span class="hljs-selector-id">#scroll-top-button</span> &#123;<br>	<span class="hljs-attribute">cursor</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/Hand2.cur</span>),auto;<br>	<span class="hljs-attribute">background-color</span>: @theme_background;<br>&#125;<br></code></pre></div></td></tr></table></figure>

<p>最后，如果你喜欢我的鼠标指针，直接在我的<a target="_blank" rel="noopener" href="https://gitee.com/Asteri5m/Asteri5m/tree/master/img">仓库</a>下载即可，他们都是开源的。</p>
<h3 id="0x03-去除banner图"><a href="#0x03-去除banner图" class="headerlink" title="0x03 去除banner图"></a>0x03 去除banner图</h3><p>这里的banner图有两层，一层是图片，然后在图片上层还有一层半透明的蒙版，目的是更好的副标题文字显示，我们去掉banner图就不需要了，所以两层都要去掉。但是我们还是需要banner的位置在那，这样才有一个封面，才美观，而不是直接看到文章列表。</p>
<p>这里修改主题配置文件 <code>_config.fluid.yml </code> </p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026191652682.png" srcset="/img/loading.gif" lazyload></p>
<p>banner图我试过了，没有好的方法去除，所以直接载入一张透明的图片即可这里的相对位置也是<code>yourblog/source/</code>，将蒙版不透明度调到0，完全透明就好。</p>
<p>这只是首页，还有另外几页，也是同样的修改（也是配置文件里）。</p>
<h3 id="0x04-添加固定背景图"><a href="#0x04-添加固定背景图" class="headerlink" title="0x04 添加固定背景图"></a>0x04 添加固定背景图</h3><p>没有了banner图，此时博客页面上就没有图片了，所以可以添加固定的背景图，方法如下：</p>
<figure class="highlight css"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs css"><span class="hljs-comment">/* 设置背景图片 */</span><br><span class="hljs-selector-tag">body</span> &#123;<br>  <span class="hljs-attribute">background</span>: <span class="hljs-built_in">url</span>(<span class="hljs-string">/img/10.jpg</span>);<br>  <span class="hljs-attribute">background-attachment</span>: fixed;<br>  <span class="hljs-attribute">background-size</span>: cover;  <br>&#125;<br></code></pre></div></td></tr></table></figure>

<p>效果如下</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026192604121.png" srcset="/img/loading.gif" lazyload></p>
<p>无论什么滑动都是不会变。</p>
<h2 id="0x10-JS"><a href="#0x10-JS" class="headerlink" title="0x10 JS"></a>0x10 JS</h2><h3 id="0x11-鼠标点击特效"><a href="#0x11-鼠标点击特效" class="headerlink" title="0x11 鼠标点击特效"></a>0x11 鼠标点击特效</h3><p>在一篇博客里找到了博主直接给了js链接，但是我害怕失效了，所以直接把源码偷过来了(≖ᴗ≖)✧</p>
<p>（代码太长占地方，进行了压缩，编辑器是可以恢复的，不恢复直接使用也可以。）</p>
<figure class="highlight js"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs js"><span class="hljs-comment">//花花特效</span><br><span class="hljs-comment">//onload=function()&#123;var click_cnt=0,$html=document.getElementsByTagName(&quot;html&quot;)[0],$body=document.getElementsByTagName(&quot;body&quot;)[0];$html.onclick=function(e)&#123;var $elem=document.createElement(&quot;b&quot;);$elem.style.color=&quot;#FFC0CB&quot;,$elem.style.zIndex=9999,$elem.style.position=&quot;absolute&quot;,$elem.style.select=&quot;none&quot;;var x=e.pageX,y=e.pageY;switch($elem.style.left=x-10+&quot;px&quot;,$elem.style.top=y-20+&quot;px&quot;,clearInterval(anim),++click_cnt)&#123;case 10:$elem.innerText=&quot;OωO&quot;;break;case 20:$elem.innerText=&quot;(๑•́ ∀ •̀๑)&quot;;break;case 30:$elem.innerText=&quot;(๑•́ ₃ •̀๑)&quot;;break;case 40:$elem.innerText=&quot;(๑•̀_•́๑)&quot;;break;case 50:$elem.innerText=&quot;（￣へ￣）&quot;;break;case 60:$elem.innerText=&quot;(╯°口°)╯(┴—┴&quot;;break;case 70:$elem.innerText=&quot;૮( ᵒ̌皿ᵒ̌ )ა&quot;;break;case 80:$elem.innerText=&quot;╮(｡&gt;口&lt;｡)╭&quot;;break;case 90:$elem.innerText=&quot;( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃&quot;;break;case 100:case 101:case 102:case 103:case 104:case 105:$elem.innerText=&quot;(ꐦ°᷄д°᷅)&quot;;break;default:$elem.innerText=&quot;🌸&quot;&#125;$elem.style.fontSize=10*Math.random()+8+&quot;px&quot;;var increase=0,anim;setTimeout((function()&#123;anim=setInterval((function()&#123;150==++increase&amp;&amp;(clearInterval(anim),$body.removeChild($elem)),$elem.style.top=y-20-increase+&quot;px&quot;,$elem.style.opacity=(150-increase)/120&#125;),8)&#125;),70),$body.appendChild($elem)&#125;&#125;;</span><br><br><span class="hljs-comment">//社会主义核心价值观</span><br><span class="hljs-keyword">var</span> a_idx = <span class="hljs-number">0</span>; jQuery(<span class="hljs-built_in">document</span>).ready(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">$</span>) </span>&#123; $(<span class="hljs-string">&quot;body&quot;</span>).click(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">e</span>) </span>&#123; <span class="hljs-keyword">var</span> a = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Array</span>(<span class="hljs-string">&quot;富强&quot;</span>, <span class="hljs-string">&quot;民主&quot;</span>, <span class="hljs-string">&quot;文明&quot;</span>, <span class="hljs-string">&quot;和谐&quot;</span>, <span class="hljs-string">&quot;自由&quot;</span>, <span class="hljs-string">&quot;平等&quot;</span>, <span class="hljs-string">&quot;公正&quot;</span>, <span class="hljs-string">&quot;法治&quot;</span>, <span class="hljs-string">&quot;爱国&quot;</span>, <span class="hljs-string">&quot;敬业&quot;</span>, <span class="hljs-string">&quot;诚信&quot;</span>, <span class="hljs-string">&quot;友善&quot;</span>); <span class="hljs-keyword">var</span> $i = $(<span class="hljs-string">&quot;&lt;span/&gt;&quot;</span>).text(a[a_idx]); a_idx = (a_idx + <span class="hljs-number">1</span>) % a.length; <span class="hljs-keyword">var</span> x = e.pageX, y = e.pageY; <span class="hljs-keyword">let</span> scrolly = <span class="hljs-built_in">window</span>.pageYOffset || <span class="hljs-built_in">document</span>.body.scrollTop || <span class="hljs-built_in">document</span>.documentElement.scrollTop; y = y - scrolly; $i.css(&#123; <span class="hljs-string">&quot;z-index&quot;</span>: <span class="hljs-number">999</span>, <span class="hljs-string">&quot;top&quot;</span>: y - <span class="hljs-number">20</span>, <span class="hljs-string">&quot;left&quot;</span>: x, <span class="hljs-string">&quot;position&quot;</span>: <span class="hljs-string">&quot;fixed&quot;</span>, <span class="hljs-string">&quot;font-weight&quot;</span>: <span class="hljs-string">&quot;bold&quot;</span>, <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;#ff6651&quot;</span> <span class="hljs-comment">/*随机颜色写法：&quot;rgb(&quot; + ~~(255 * Math.random()) + &quot;,&quot; + ~~(255 * Math.random()) + &quot;,&quot; + ~~(255 * Math.random()) + &quot;)&quot;*/</span> &#125;); $(<span class="hljs-string">&quot;body&quot;</span>).append($i); $i.animate(&#123; <span class="hljs-string">&quot;top&quot;</span>: y - <span class="hljs-number">180</span>, <span class="hljs-string">&quot;opacity&quot;</span>: <span class="hljs-number">0</span> &#125;, <span class="hljs-number">1500</span>, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>&#123; $i.remove(); &#125;);  &#125;); &#125;);<br><br><span class="hljs-comment">//引入小心心特效</span><br><span class="hljs-comment">//!function (e, t, a) &#123;function r() &#123;for (var e = 0; e &lt; s.length; e++) s[e].alpha &lt;= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = &quot;left:&quot; + s[e].x + &quot;px;top:&quot; + s[e].y + &quot;px;opacity:&quot; + s[e].alpha + &quot;;transform:scale(&quot; + s[e].scale + &quot;,&quot; + s[e].scale + &quot;) rotate(45deg);background:&quot; + s[e].color + &quot;;z-index:99999&quot;);requestAnimationFrame(r)&#125;function n() &#123;var t = &quot;function&quot; == typeof e.onclick &amp;&amp; e.onclick;e.onclick = function (e) &#123;t &amp;&amp; t(), o(e)&#125;&#125;function o(e) &#123;var a = t.createElement(&quot;div&quot;);a.className = &quot;heart&quot;, s.push(&#123;el: a,x: e.clientX - 5,y: e.clientY - 5,scale: 1,alpha: 1,color: c()&#125;), t.body.appendChild(a)&#125;function i(e) &#123;var a = t.createElement(&quot;style&quot;);a.type = &quot;text/css&quot;;try &#123;a.appendChild(t.createTextNode(e))&#125; catch (t) &#123;a.styleSheet.cssText = e&#125;t.getElementsByTagName(&quot;head&quot;)[0].appendChild(a)&#125;function c() &#123;return &quot;rgb(&quot; + ~~(255 * Math.random()) + &quot;,&quot; + ~~(255 * Math.random()) + &quot;,&quot; + ~~(255 * Math.random()) + &quot;)&quot;&#125;var s = [];e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) &#123;setTimeout(e, 1e3 / 60)&#125;, i(&quot;.heart&#123;width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);&#125;.heart:after,.heart:before&#123;content: &#x27;&#x27;;width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;&#125;.heart:after&#123;top: -5px;&#125;.heart:before&#123;left: -5px;&#125;&quot;), n(), r()&#125;(window, document);</span><br></code></pre></div></td></tr></table></figure>

<p>这里我只用了二十四字核心价值观的特效，还对他进行了修改。</p>
<p>起因：原定位方式为absolute，导致我点击目录的时候，页面会快速上线跳转，特效就跟着页面跑了……跑了……了……</p>
<p>修改方法：将定位absolute改为fixed，y的值改为<code>y - scrolly(滚动条滚动的高度)</code> ，（注：这里24字核心价值观已经修改好了，直接用即可，另外两个也是一样，小白对照着修改就好。或者你直接修改那二十四字的内容，也是可以的。）</p>
<p>然后就有了完美的点击特效。</p>
<p>新增：文本不能被选中，原来的效果中，如果你喜欢玩那个特效，那么连续的点击就会导致前面的字会被选中，极其不美观</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211124000454905.png" srcset="/img/loading.gif" lazyload></p>
<p>找到代码中的css属性（在js文件中），添加代码</p>
<figure class="highlight js"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs js"><span class="hljs-string">&quot;-webkit-user-select&quot;</span>: <span class="hljs-string">&quot;none&quot;</span>,<br><span class="hljs-string">&quot;-moz-user-select&quot;</span>: <span class="hljs-string">&quot;none&quot;</span>,<br><span class="hljs-string">&quot;-o-user-select&quot;</span>: <span class="hljs-string">&quot;none&quot;</span>,<br><span class="hljs-string">&quot;user-select&quot;</span>: <span class="hljs-string">&quot;none&quot;</span>,<br></code></pre></div></td></tr></table></figure>

<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211124000808506.png" srcset="/img/loading.gif" lazyload></p>
<p>在鼠标移动特效也适用，添加在相应的位置即可。例如我的星星特效：</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211124000934686.png" srcset="/img/loading.gif" lazyload></p>
<h3 id="0x12-背景动态线条"><a href="#0x12-背景动态线条" class="headerlink" title="0x12 背景动态线条"></a>0x12 背景动态线条</h3><figure class="highlight js"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs js">&lt;!--动态线条背景--&gt; <span class="hljs-keyword">var</span> color_dark = <span class="hljs-string">&quot;255,255,255&quot;</span>; <span class="hljs-keyword">var</span> color_light = <span class="hljs-string">&quot;0,0,0&quot;</span>; <span class="hljs-keyword">var</span> opacity = <span class="hljs-string">&#x27;0.8&#x27;</span>; <span class="hljs-keyword">var</span> zIndex = <span class="hljs-string">&quot;-2&quot;</span>; <span class="hljs-keyword">var</span> count = <span class="hljs-string">&quot;200&quot;</span>; <span class="hljs-keyword">var</span> Line_act = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">color</span>) </span>&#123; <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">o</span>(<span class="hljs-params">w, v, i</span>) </span>&#123; <span class="hljs-keyword">return</span> w.getAttribute(v) || i &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">j</span>(<span class="hljs-params">i</span>) </span>&#123; <span class="hljs-keyword">return</span> <span class="hljs-built_in">document</span>.getElementsByTagName(i) &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">l</span>(<span class="hljs-params"></span>) </span>&#123; <span class="hljs-keyword">var</span> i = j(<span class="hljs-string">&quot;script&quot;</span>), w = i.length, v = i[w - <span class="hljs-number">1</span>]; <span class="hljs-keyword">return</span> &#123; <span class="hljs-attr">l</span>: w, <span class="hljs-attr">z</span>: o(v, <span class="hljs-string">&quot;zIndex&quot;</span>, -<span class="hljs-number">1</span>), <span class="hljs-attr">o</span>: o(v, <span class="hljs-string">&quot;opacity&quot;</span>, <span class="hljs-number">0.8</span>), <span class="hljs-attr">c</span>: o(v, <span class="hljs-string">&quot;color&quot;</span>, color), <span class="hljs-attr">n</span>: o(v, <span class="hljs-string">&quot;count&quot;</span>, <span class="hljs-number">100</span>) &#125; &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">k</span>(<span class="hljs-params"></span>) </span>&#123; r = u.width = <span class="hljs-built_in">window</span>.innerWidth || <span class="hljs-built_in">document</span>.documentElement.clientWidth || <span class="hljs-built_in">document</span>.body.clientWidth, n = u.height = <span class="hljs-built_in">window</span>.innerHeight || <span class="hljs-built_in">document</span>.documentElement.clientHeight || <span class="hljs-built_in">document</span>.body.clientHeight &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">b</span>(<span class="hljs-params"></span>) </span>&#123; e.clearRect(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, r, n); <span class="hljs-keyword">var</span> w = [f].concat(t); <span class="hljs-keyword">var</span> x, v, A, B, z, y; t.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">i</span>) </span>&#123; i.x += i.xa, i.y += i.ya, i.xa *= i.x &gt; r || i.x &lt; <span class="hljs-number">0</span> ? -<span class="hljs-number">1</span> : <span class="hljs-number">1</span>, i.ya *= i.y &gt; n || i.y &lt; <span class="hljs-number">0</span> ? -<span class="hljs-number">1</span> : <span class="hljs-number">1</span>, e.fillRect(i.x - <span class="hljs-number">0.5</span>, i.y - <span class="hljs-number">0.5</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>); <span class="hljs-keyword">for</span> (v = <span class="hljs-number">0</span>; v &lt; w.length; v++) &#123; x = w[v]; <span class="hljs-keyword">if</span> (i !== x &amp;&amp; <span class="hljs-literal">null</span> !== x.x &amp;&amp; <span class="hljs-literal">null</span> !== x.y) &#123; B = i.x - x.x, z = i.y - x.y, y = B * B + z * z; y &lt; x.max &amp;&amp; (x === f &amp;&amp; y &gt;= x.max / <span class="hljs-number">2</span> &amp;&amp; (i.x -= <span class="hljs-number">0.03</span> * B, i.y -= <span class="hljs-number">0.03</span> * z), A = (x.max - y) / x.max, e.beginPath(), e.lineWidth = A / <span class="hljs-number">2</span>, e.strokeStyle = <span class="hljs-string">&quot;rgba(&quot;</span> + s.c + <span class="hljs-string">&quot;,&quot;</span> + (A + <span class="hljs-number">0.2</span>) + <span class="hljs-string">&quot;)&quot;</span>, e.moveTo(i.x, i.y), e.lineTo(x.x, x.y), e.stroke()) &#125; &#125; w.splice(w.indexOf(i), <span class="hljs-number">1</span>) &#125;), m(b) &#125; <span class="hljs-keyword">var</span> u = <span class="hljs-built_in">document</span>.createElement(<span class="hljs-string">&quot;canvas&quot;</span>), s = l(), c = <span class="hljs-string">&quot;c_n&quot;</span> + s.l, e = u.getContext(<span class="hljs-string">&quot;2d&quot;</span>), r, n, m = <span class="hljs-built_in">window</span>.requestAnimationFrame || <span class="hljs-built_in">window</span>.webkitRequestAnimationFrame || <span class="hljs-built_in">window</span>.mozRequestAnimationFrame || <span class="hljs-built_in">window</span>.oRequestAnimationFrame || <span class="hljs-built_in">window</span>.msRequestAnimationFrame || <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">i</span>) </span>&#123; <span class="hljs-built_in">window</span>.setTimeout(i, <span class="hljs-number">1000</span> / <span class="hljs-number">45</span>) &#125;, a = <span class="hljs-built_in">Math</span>.random, f = &#123; <span class="hljs-attr">x</span>: <span class="hljs-literal">null</span>, <span class="hljs-attr">y</span>: <span class="hljs-literal">null</span>, <span class="hljs-attr">max</span>: <span class="hljs-number">20000</span> &#125;; u.id = c; u.style.cssText = <span class="hljs-string">&quot;position:fixed;top:0;left:0;z-index:&quot;</span> + s.z + <span class="hljs-string">&quot;;opacity:&quot;</span> + s.o; j(<span class="hljs-string">&quot;body&quot;</span>)[<span class="hljs-number">0</span>].appendChild(u); k(), <span class="hljs-built_in">window</span>.onresize = k; <span class="hljs-built_in">window</span>.onmousemove = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">i</span>) </span>&#123; i = i || <span class="hljs-built_in">window</span>.event, f.x = i.clientX, f.y = i.clientY &#125;, <span class="hljs-built_in">window</span>.onmouseout = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>&#123; f.x = <span class="hljs-literal">null</span>, f.y = <span class="hljs-literal">null</span> &#125;; <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> t = [], p = <span class="hljs-number">0</span>; s.n &gt; p; p++) &#123; <span class="hljs-keyword">var</span> h = a() * r, g = a() * n, q = <span class="hljs-number">2</span> * a() - <span class="hljs-number">1</span>, d = <span class="hljs-number">2</span> * a() - <span class="hljs-number">1</span>; t.push(&#123; <span class="hljs-attr">x</span>: h, <span class="hljs-attr">y</span>: g, <span class="hljs-attr">xa</span>: q, <span class="hljs-attr">ya</span>: d, <span class="hljs-attr">max</span>: <span class="hljs-number">6000</span> &#125;) &#125; <span class="hljs-built_in">setTimeout</span>(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>&#123; b() &#125;, <span class="hljs-number">100</span>) &#125;;  <span class="hljs-comment">/* 以下是我自己改的，将上述函数改为声明，在下面选择调用 */</span> <span class="hljs-keyword">var</span> lord = <span class="hljs-built_in">document</span>.getElementById(<span class="hljs-string">&quot;color-toggle-icon&quot;</span>).getAttribute(<span class="hljs-string">&#x27;data&#x27;</span>); <span class="hljs-keyword">if</span>(lord == <span class="hljs-string">&quot;light&quot;</span>)&#123; Line_act(color_dark); &#125; <span class="hljs-keyword">else</span>&#123; Line_act(color_light); &#125;<br></code></pre></div></td></tr></table></figure>

<p>因为我的博客是有两个主题模式（白天和黑夜）可切换的。所以就需要两个线条的颜色。</p>
<p>本来我是想做到颜色的变化随主题动态变换的，奈何技术不够硬，只能做成这样（载入时就是最优效果），切换暗色亮色后需刷新才能变化……</p>
<p>这里我确认主题的方法则是通过我的切换按钮，通过<code>getElementById()</code>找到该标签，再通过<code>getAttribute()</code>获取属性的值</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211025145431896.png" srcset="/img/loading.gif" lazyload></p>
<p>这里我得感谢我的大佬同学的帮助，因此，我学到了<code>getAttribute()</code>方法</p>
<p>如果你和不是同款主题，应该会报错，将最后的代码（从注释哪里开始）修改为一下内容即可</p>
<figure class="highlight js"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs js"><span class="hljs-comment">//分别对应亮色和暗色的线条，二选一即可。或者根据需求自行修改参数，在最开始的位置。</span><br>Line_act(color_dark);<br>Line_act(color_light);<br></code></pre></div></td></tr></table></figure>

<p>Fluid主题里的文章页目录的z-index值貌似很低，线条对目录进行了遮挡，导致不能点击目录，在css里添加一下代码即可</p>
<figure class="highlight css"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs css"><span class="hljs-comment">/* 提高目录的z轴坐标，否则会被动态线挡住 */</span><br><span class="hljs-selector-id">#toc</span><br>&#123;<br>	<span class="hljs-attribute">z-index</span>: <span class="hljs-number">10</span>;<br>&#125;<br></code></pre></div></td></tr></table></figure>



<h3 id="0x13-标签恶搞"><a href="#0x13-标签恶搞" class="headerlink" title="0x13 标签恶搞"></a>0x13 标签恶搞</h3><p>这个是比较有意思的东西</p>
<p>当你浏览其他标签时，他就会变成这个样子</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211025145743845.png" srcset="/img/loading.gif" lazyload></p>
<p>如果你以为它真的崩溃了，那就……大错特错……</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211025145923838.png" srcset="/img/loading.gif" lazyload></p>
<p>就搞怪，就和你玩，诶嘿(ಥ_ಥ) ，这个还是比较简单了。</p>
<figure class="highlight js"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs js"><span class="hljs-comment">// 浏览器搞笑标题</span><br><span class="hljs-keyword">var</span> OriginTitle = <span class="hljs-built_in">document</span>.title;<br><span class="hljs-keyword">var</span> titleTime;<br><span class="hljs-built_in">document</span>.addEventListener(<span class="hljs-string">&#x27;visibilitychange&#x27;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>&#123;<br>	<span class="hljs-keyword">if</span> (<span class="hljs-built_in">document</span>.hidden) &#123;<br>		$(<span class="hljs-string">&#x27;[rel=&quot;icon&quot;]&#x27;</span>).attr(<span class="hljs-string">&#x27;href&#x27;</span>, <span class="hljs-string">&quot;/funny.ico&quot;</span>);<br>		<span class="hljs-built_in">document</span>.title = <span class="hljs-string">&#x27;╭(°A°`)╮ 页面崩溃啦 ~&#x27;</span>;<br>		<span class="hljs-built_in">clearTimeout</span>(titleTime);<br>	&#125; <span class="hljs-keyword">else</span> &#123;<br>		$(<span class="hljs-string">&#x27;[rel=&quot;icon&quot;]&#x27;</span>).attr(<span class="hljs-string">&#x27;href&#x27;</span>, <span class="hljs-string">&quot;/img/newtubiao.png&quot;</span>);<br>		<span class="hljs-built_in">document</span>.title = <span class="hljs-string">&#x27;(ฅ&gt;ω&lt;*ฅ) 噫又好啦 ~&#x27;</span> + OriginTitle;<br>		titleTime = <span class="hljs-built_in">setTimeout</span>(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>&#123;<br>			<span class="hljs-built_in">document</span>.title = OriginTitle;<br>		&#125;, <span class="hljs-number">2000</span>);<br>	&#125;<br>&#125;);<br></code></pre></div></td></tr></table></figure>

<h3 id="0x14-鼠标移动特效"><a href="#0x14-鼠标移动特效" class="headerlink" title="0x14 鼠标移动特效"></a>0x14 鼠标移动特效</h3><p>当你的鼠标移动的时候，会有小心心冒出来</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026193145227.png" srcset="/img/loading.gif" lazyload></p>
<figure class="highlight js"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs js"><span class="hljs-comment">// 鼠标移动星星特效</span><br>(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>&#123; <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">t</span>(<span class="hljs-params"></span>) </span>&#123; i(), a() &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">i</span>(<span class="hljs-params"></span>) </span>&#123; <span class="hljs-built_in">document</span>.addEventListener(<span class="hljs-string">&quot;mousemove&quot;</span>, o), <span class="hljs-built_in">document</span>.addEventListener(<span class="hljs-string">&quot;touchmove&quot;</span>, e), <span class="hljs-built_in">document</span>.addEventListener( <span class="hljs-string">&quot;touchstart&quot;</span>, e), <span class="hljs-built_in">window</span>.addEventListener(<span class="hljs-string">&quot;resize&quot;</span>, n) &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">n</span>(<span class="hljs-params">t</span>) </span>&#123; d = <span class="hljs-built_in">window</span>.innerWidth, <span class="hljs-built_in">window</span>.innerHeight &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">e</span>(<span class="hljs-params">t</span>) </span>&#123; <span class="hljs-keyword">if</span> (t.touches.length &gt; <span class="hljs-number">0</span>) <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>; i &lt; t.touches.length; i++) s(t.touches[i].clientX, t.touches[i].clientY, r[<span class="hljs-built_in">Math</span>.floor(<span class="hljs-built_in">Math</span>.random() * r.length)]) &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">o</span>(<span class="hljs-params">t</span>) </span>&#123; u.x = t.clientX, u.y = t.clientY, s(u.x, u.y, r[<span class="hljs-built_in">Math</span>.floor(<span class="hljs-built_in">Math</span>.random() * r.length)]) &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">s</span>(<span class="hljs-params">t, i, n</span>) </span>&#123; <span class="hljs-keyword">var</span> e = <span class="hljs-keyword">new</span> l; e.init(t, i, n), f.push(e) &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">h</span>(<span class="hljs-params"></span>) </span>&#123; <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> t = <span class="hljs-number">0</span>; t &lt; f.length; t++) f[t].update(); <span class="hljs-keyword">for</span> (t = f.length - <span class="hljs-number">1</span>; t &gt;= <span class="hljs-number">0</span>; t--) f[t].lifeSpan &lt; <span class="hljs-number">0</span> &amp;&amp; (f[t].die(), f.splice(t, <span class="hljs-number">1</span>)) &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">a</span>(<span class="hljs-params"></span>) </span>&#123; requestAnimationFrame(a), h() &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">l</span>(<span class="hljs-params"></span>) </span>&#123; <span class="hljs-built_in">this</span>.character = <span class="hljs-string">&quot;*&quot;</span>, <span class="hljs-built_in">this</span>.lifeSpan = <span class="hljs-number">120</span>, <span class="hljs-built_in">this</span>.initialStyles = &#123; <span class="hljs-attr">position</span>: <span class="hljs-string">&quot;fixed&quot;</span>, <span class="hljs-attr">top</span>: <span class="hljs-string">&quot;0&quot;</span>, <span class="hljs-attr">display</span>: <span class="hljs-string">&quot;block&quot;</span>, <span class="hljs-attr">pointerEvents</span>: <span class="hljs-string">&quot;none&quot;</span>, <span class="hljs-string">&quot;z-index&quot;</span>: <span class="hljs-string">&quot;10000000&quot;</span>, <span class="hljs-attr">fontSize</span>: <span class="hljs-string">&quot;20px&quot;</span>, <span class="hljs-string">&quot;will-change&quot;</span>: <span class="hljs-string">&quot;transform&quot;</span> &#125;, <span class="hljs-built_in">this</span>.init = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">t, i, n</span>) </span>&#123; <span class="hljs-built_in">this</span>.velocity = &#123; <span class="hljs-attr">x</span>: (<span class="hljs-built_in">Math</span>.random() &lt; <span class="hljs-number">.5</span> ? -<span class="hljs-number">1</span> : <span class="hljs-number">1</span>) * (<span class="hljs-built_in">Math</span>.random() / <span class="hljs-number">2</span>), <span class="hljs-attr">y</span>: <span class="hljs-number">1</span> &#125;, <span class="hljs-built_in">this</span>.position = &#123; <span class="hljs-attr">x</span>: t - <span class="hljs-number">10</span>, <span class="hljs-attr">y</span>: i - <span class="hljs-number">20</span> &#125;, <span class="hljs-built_in">this</span>.initialStyles.color = n, <span class="hljs-built_in">this</span>.element = <span class="hljs-built_in">document</span>.createElement(<span class="hljs-string">&quot;span&quot;</span>), <span class="hljs-built_in">this</span>.element.innerHTML = <span class="hljs-built_in">this</span>.character, c(<span class="hljs-built_in">this</span>.element, <span class="hljs-built_in">this</span>.initialStyles), <span class="hljs-built_in">this</span>.update(), <span class="hljs-built_in">document</span>.body.appendChild(<span class="hljs-built_in">this</span>.element) &#125;, <span class="hljs-built_in">this</span>.update = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>&#123; <span class="hljs-built_in">this</span>.position.x += <span class="hljs-built_in">this</span>.velocity.x, <span class="hljs-built_in">this</span>.position.y += <span class="hljs-built_in">this</span>.velocity.y, <span class="hljs-built_in">this</span>.lifeSpan--, <span class="hljs-built_in">this</span>.element.style.transform = <span class="hljs-string">&quot;translate3d(&quot;</span> + <span class="hljs-built_in">this</span>.position.x + <span class="hljs-string">&quot;px,&quot;</span> + <span class="hljs-built_in">this</span>.position.y + <span class="hljs-string">&quot;px,0) scale(&quot;</span> + <span class="hljs-built_in">this</span>.lifeSpan / <span class="hljs-number">120</span> + <span class="hljs-string">&quot;)&quot;</span> &#125;, <span class="hljs-built_in">this</span>.die = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>&#123; <span class="hljs-built_in">this</span>.element.parentNode.removeChild(<span class="hljs-built_in">this</span>.element) &#125; &#125;  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">c</span>(<span class="hljs-params">t, i</span>) </span>&#123; <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> n <span class="hljs-keyword">in</span> i) t.style[n] = i[n] &#125; <span class="hljs-keyword">var</span> r = [<span class="hljs-string">&quot;#D61C59&quot;</span>, <span class="hljs-string">&quot;#E7D84B&quot;</span>, <span class="hljs-string">&quot;#1B8798&quot;</span>, <span class="hljs-string">&quot;#ffaaff&quot;</span>, <span class="hljs-string">&quot;#aaaaff&quot;</span>], d = <span class="hljs-built_in">window</span>.innerWidth, u = (<span class="hljs-built_in">window</span>.innerHeight, &#123; <span class="hljs-attr">x</span>: d / <span class="hljs-number">2</span>, <span class="hljs-attr">y</span>: d / <span class="hljs-number">2</span> &#125;), f = []; t() &#125;)();<br></code></pre></div></td></tr></table></figure>

<p>在颜色队列里可以替换你喜欢的颜色，它们会随机出现。</p>
<h3 id="0x15-添加网站计时器"><a href="#0x15-添加网站计时器" class="headerlink" title="0x15 添加网站计时器"></a>0x15 添加网站计时器</h3><p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026193451102.png" srcset="/img/loading.gif" lazyload></p>
<p>这个教程是最坑的，代码接入后就一直报错……最后找到了原因，先看代码再解释</p>
<figure class="highlight js"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs js"><span class="hljs-comment">//运行时间bynote.cn</span><br><span class="hljs-keyword">var</span> now = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Date</span>(); <br><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">createtime</span>(<span class="hljs-params"></span>) </span>&#123; <br>    <span class="hljs-keyword">var</span> grt= <span class="hljs-keyword">new</span> <span class="hljs-built_in">Date</span>(<span class="hljs-string">&quot;10/20/2021 01:18:00&quot;</span>);<span class="hljs-comment">//在此处修改你的建站时间，格式：月/日/年 时:分:秒</span><br>    now.setTime(now.getTime()+<span class="hljs-number">250</span>); <br>    days = (now - grt ) / <span class="hljs-number">1000</span> / <span class="hljs-number">60</span> / <span class="hljs-number">60</span> / <span class="hljs-number">24</span>; dnum = <span class="hljs-built_in">Math</span>.floor(days); <br>    hours = (now - grt ) / <span class="hljs-number">1000</span> / <span class="hljs-number">60</span> / <span class="hljs-number">60</span> - (<span class="hljs-number">24</span> * dnum); hnum = <span class="hljs-built_in">Math</span>.floor(hours); <br>    <span class="hljs-keyword">if</span>(<span class="hljs-built_in">String</span>(hnum).length ==<span class="hljs-number">1</span> )&#123;hnum = <span class="hljs-string">&quot;0&quot;</span> + hnum;&#125; minutes = (now - grt ) / <span class="hljs-number">1000</span> /<span class="hljs-number">60</span> - (<span class="hljs-number">24</span> * <span class="hljs-number">60</span> * dnum) - (<span class="hljs-number">60</span> * hnum); <br>    mnum = <span class="hljs-built_in">Math</span>.floor(minutes); <span class="hljs-keyword">if</span>(<span class="hljs-built_in">String</span>(mnum).length ==<span class="hljs-number">1</span> )&#123;mnum = <span class="hljs-string">&quot;0&quot;</span> + mnum;&#125; <br>    seconds = (now - grt ) / <span class="hljs-number">1000</span> - (<span class="hljs-number">24</span> * <span class="hljs-number">60</span> * <span class="hljs-number">60</span> * dnum) - (<span class="hljs-number">60</span> * <span class="hljs-number">60</span> * hnum) - (<span class="hljs-number">60</span> * mnum); <br>    snum = <span class="hljs-built_in">Math</span>.round(seconds); <span class="hljs-keyword">if</span>(<span class="hljs-built_in">String</span>(snum).length ==<span class="hljs-number">1</span> )&#123;snum = <span class="hljs-string">&quot;0&quot;</span> + snum;&#125; <br>    <span class="hljs-built_in">document</span>.getElementById(<span class="hljs-string">&quot;timeDate&quot;</span>).innerHTML = <span class="hljs-string">&quot;本站已夹缝中生存 &quot;</span>+ dnum +<span class="hljs-string">&quot; 天 &quot;</span>; <br>    <span class="hljs-built_in">document</span>.getElementById(<span class="hljs-string">&quot;times&quot;</span>).innerHTML = hnum + <span class="hljs-string">&quot; 小时 &quot;</span> + mnum + <span class="hljs-string">&quot; 分 &quot;</span> + snum + <span class="hljs-string">&quot; 秒&quot;</span>; <br>&#125; <br><span class="hljs-built_in">setInterval</span>(<span class="hljs-string">&quot;createtime()&quot;</span>,<span class="hljs-number">250</span>);<br></code></pre></div></td></tr></table></figure>

<p>运行之后会对<code>document.getElementById</code>方法报错，为什么？（因为我本身也是个半吊子，这种东西也不是很熟悉）我一直在想为什么，突然我就想明白了，他娘的压根就没有那两个标签（一个id为<code>timeDate</code>，一个为<code>times</code>。不懂？没关系！照做就行！）。所以就得自己在源代码里添加，加入这两个标签，我是那种改源码的人吗？显然不是，所以我找了这个地方（在配置文件 <code>_config,fluid.yml</code>里）</p>
<p><img src="https://gitee.com/Asteri5m/wd_img/raw/master/img/image-20211026194135178.png" srcset="/img/loading.gif" lazyload></p>
<p>添加在页脚 hexo❤Fluid那行之后，网站的PV、UV统计之前，就是上面展示的样式。同时害修饰了hexo和fluid显示内容。</p>
<figure class="highlight yaml"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs yaml"><span class="hljs-string">&lt;br&gt;&lt;span</span> <span class="hljs-string">id=&quot;timeDate&quot;&gt;天数载入中&lt;/span&gt;&lt;span</span> <span class="hljs-string">id=&quot;times&quot;&gt;...&lt;/span&gt;&lt;br&gt;</span><br></code></pre></div></td></tr></table></figure>

<p>添加完这行代码就能运行了。如果字体大小不符合你的要求，都可以通过<strong>css</strong>修改：</p>
<figure class="highlight css"><table><tr><td class="gutter hljs"><div class="hljs code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></div></td><td class="code"><div class="hljs code-wrapper"><pre><code class="hljs css"><span class="hljs-selector-id">#timeDate</span> &#123;<br>	<span class="hljs-attribute">font-size</span>: <span class="hljs-number">12px</span>;<br>&#125;<br><span class="hljs-selector-id">#times</span> &#123;<br>	<span class="hljs-attribute">font-size</span>: <span class="hljs-number">12px</span>;<br>&#125;<br></code></pre></div></td></tr></table></figure>

<hr>
<p>持续更新中……</p>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/categories/%E9%9A%8F%E6%89%8B%E8%AE%B0%C2%B7%E4%B8%80%E4%BA%9B%E5%AE%89%E5%85%A8%E4%B9%8B%E5%A4%96%E7%9A%84%E6%8A%80%E6%9C%AF/">随手记·一些安全之外的技术</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/HTML/">HTML</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/archives/Excel%E7%99%BE%E5%88%86%E6%95%B0%E5%8E%BB%E7%99%BE%E5%88%86%E5%8F%B7.html">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">Excel百分数去百分号</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/archives/%E8%AE%B0%E4%B8%80%E6%AC%A1%E7%BD%91%E7%BB%9C(%E5%B1%80%E5%9F%9F%E7%BD%91)%E7%A8%8B%E5%BA%8F%E9%A1%B9%E7%9B%AE%E5%BC%80%E5%8F%91.html">
                        <span class="hidden-mobile">记一次网络(局域网)程序项目开发(一)</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
              <!-- Comments -->
              <article class="comments" id="comments" lazyload>
                
                  
                
                
  <div id="valine"></div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#valine', function() {
      Fluid.utils.createScript('https://cdn.jsdelivr.net/gh/HCLonely/Valine@latest/dist/Valine.min.js', function() {
        var options = Object.assign(
          {"appId":"5INqyf5xMrWdsn0whn39qjsu-gzGzoHsz","appKey":"6UTAOxyJnjvDwHX3PJagKMg9","path":"window.location.pathname","placeholder":"输入QQ号我就能获取你的企鹅昵称和头像啦~","avatar":"retro","meta":["nick","mail","link"],"requiredFields":[],"pageSize":10,"lang":"zh-CN","highlight":false,"recordIP":false,"serverURLs":"","emojiCDN":null,"emojiMaps":null,"enableQQ":true,"tagMeta":["博主","小伙伴","访客"],"master":"3bbfd45c0631973d5196327805f62511","friends":["2012b2da9e0852350b42a9c21823f3cf","641f794b535aea2ebe2ad543ec35e2f8"]},
          {
            el: "#valine",
            path: window.location.pathname
          }
        )
        new Valine(options);
        Fluid.utils.waitElementVisible('#valine .vcontent', () => {
          Fluid.plugins.initFancyBox('#valine .vcontent img:not(.vemoji)');
        })
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>


              </article>
            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
      <div class="col-lg-7 mx-auto nopadding-x-md">
        <div class="container custom mx-auto">
          <meting-js server="netease" type="playlist" id="5413938648" fixed="true" theme="#aa55ff"></meting-js>
        </div>
      </div>
    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>使用Hexo框架</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>精品Fluid主题</span></a><br> <span id="timeDate">天数载入中</span><span id="times">...</span><br> 
  </div>
  
  <div class="statistics">
    
    

    
      
        <!-- LeanCloud 统计PV -->
        <span id="leancloud-site-pv-container" style="display: none">
            总访问量 
            <span id="leancloud-site-pv"></span>
             次
          </span>
      
      
        <!-- LeanCloud 统计UV -->
        <span id="leancloud-site-uv-container" style="display: none">
            总访客数 
            <span id="leancloud-site-uv"></span>
             人
          </span>
      

    
  </div>


  
  <!-- 备案信息 -->
  <div class="beian">
    <span>
      <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
        蜀ICP备2021029058号
      </a>
    </span>
    
      
        <span>
          <a
            href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=51011202000479"
            rel="nofollow noopener"
            class="beian-police"
            target="_blank"
          >
            
              <span style="visibility: hidden; width: 0">|</span>
              <img src="/img/beian.png" srcset="/img/loading.gif" lazyload alt="police-icon"/>
            
            <span>川公网安备 51011202000479号</span>
          </a>
        </span>
      
    
  </div>


  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/js/local-search.js" ></script>



  
    <script  src="/js/img-lazyload.js" ></script>
  



  



  
    <script  src="https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4/anchor.min.js" ></script>
  
  
    <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js" ></script>
  




  <script defer src="/js/leancloud.js" ></script>



  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>












  

  

  

  

  

  




  
<script src="//cdn.jsdelivr.net/npm/aplayer@1.10.0/dist/APlayer.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/meting@2.0.1/dist/Meting.min.js"></script>
<script src="/xm_custom/custom.js"></script>



<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>


</body>
</html>
